/* DNS.h
 * CPSC 463 Sample Code 
 * by Dmitri Loguinov
 */
#include "elliott-common.h"

#pragma pack(push) 
#pragma pack(1)

class fixedDNSheader {
public:
	unsigned short ID;
	unsigned short flags;
	unsigned short question_count;
	unsigned short answer_count;
	unsigned short authority_count;
	unsigned short additional_count;

};

class queryHeader {
public:
	unsigned short type;
	unsigned short query_class;
};

class DNSanswer { 
	unsigned short type; 
	unsigned short class_type; 
	unsigned int ttl; 
	unsigned short len; 
};

#pragma pack(pop)
